from fastapi import FastAPI

app = FastAPI()


@app.get("/")
async def index():
    return "this is v8 pages"


@app.get("/app")
async def index():
    return "我是 v8 的 app 页面"


if __name__ == '__main__':
    import uvicorn

    uvicorn.run('main:app', host='0.0.0.0', port=8008, reload=True, debug=True, workers=1)